﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Setting.ascx.cs" Inherits="Controls_BackEnd_Setting" %>
<%@ Import Namespace="Business" %>
<%@ Register Src="../Common/RadEditor.ascx" TagName="AjaxEditor" TagPrefix="uc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <!-- start content-outer -->
        <div id="content-outer">
            <!-- start content -->
            <div id="content">
                <div id="page-heading">
                    <h1>
                        <%=Resources.Resource.UpdateSetting%></h1>
                </div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                    <tr>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowleft.jpg"
                                width="20" height="300" alt="" />
                        </th>
                        <th class="topleft">
                        </th>
                        <td id="tbl-border-top">
                            &nbsp;
                        </td>
                        <th class="topright">
                        </th>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowright.jpg"
                                width="20" height="300" alt="" />
                        </th>
                    </tr>
                    <tr>
                        <td id="tbl-border-left">
                        </td>
                        <td>
                            <!--  start content-table-inner -->
                            <div id="content-table-inner">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                    <tr valign="top">
                                        <td>
                                            <!-- start id-form -->
                                            <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Banner %>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtBanner" onclick="WareHouseImage('banner');" class="inp-form" MaxLength="400" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Logo%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtlogo" onclick="WareHouseImage('logo');" class="inp-form" MaxLength="400" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.PageTitle%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtPageTitle" class="inp-form" MaxLength="400" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.HeadTitle%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtHeadTitle" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Theme%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtTheme" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Email%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtEmail" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Password%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtpass" class="inp-form" TextMode="Password" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.SMTP%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtSMTP" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                   <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.SSL%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:CheckBox ID="cbSSL" runat="server" />
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                 <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Pop3%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtPop" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                 <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.SMTP%>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtPort" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <%-- <div class="error-left">
                                                        </div>
                                                        <div class="error-inner">
                                                            This field is required.</div>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.LastUpdate %>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:Label ID="lblUsername" runat="server" Text=""></asp:Label>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Content%>
                                                        :
                                                    </th>
                                                    <td colspan="2">
                                                        <uc1:AjaxEditor Width="100%" Height="500px" ID="AjaxEditor1" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        &nbsp;
                                                    </th>
                                                    <td valign="top">
                                                        <asp:Button ID="btnSave" class="form-submit" OnClick="AllCommand" runat="server" />
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                            <!-- end id-form  -->
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/blank.gif" width="695"
                                                height="1" alt="blank" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear">
                                </div>
                            </div>
                            <!--  end content-table-inner  -->
                        </td>
                        <td id="tbl-border-right">
                        </td>
                    </tr>
                    <tr>
                        <th class="sized bottomleft">
                        </th>
                        <td id="tbl-border-bottom">
                            &nbsp;
                        </td>
                        <th class="sized bottomright">
                        </th>
                    </tr>
                </table>
                <div class="clear">
                    &nbsp;</div>
            </div>
            <!--  end content -->
            <div class="clear">
                &nbsp;</div>
        </div>
        <asp:HiddenField ID="hdfbanner" runat="server" />
        <asp:HiddenField ID="hdflogo" runat="server" />
        <!--  end content-outer -->
        <script type="text/javascript">
            reloadpage = function () {
                $('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
                $('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
            }
            var type
            WareHouseImage = function (obj) {
                type = obj;
                ShowPopup(750, 500, '<%= Config.ApplicationUrl%>pages/popup.aspx?ty=img', 'Warehouse Images');
            }
            getImage = function (img) {               
                if (type == 'logo') {
                    $control('<%=txtlogo.ClientID %>').value = img;
                    $control('<%=hdflogo.ClientID %>').value = img;
                }
                else {
                    $control('<%=txtBanner.ClientID %>').value = img;
                    $control('<%=hdfbanner.ClientID %>').value = img;
                }
                UnLoading();
            }
        </script>
    </ContentTemplate>
</asp:UpdatePanel>
